/*
 * @Description: 
 * @Author: zzj
 * @Date: 2021-09-17 10:20:30
 * @LastEditors: zzj
 * @LastEditTime: 2021-09-17 19:50:10
 */
let arrlike = {
    "0":"zhangsna",
    "1":"lisi",
    "2":"wangwu",
    "3":"zhaoliu",
    length:4
}
console.log(arrlike);

//Array.prototype.push.call(arrlike,"huba")

// Object.setPrototypeOf(arrlike,Array.prototype)
// arrlike.push("sanyi");  //不能直接调用

arrlike.__proto__ = Array.prototype;
arrlike.push("charles");

console.log(arrlike);